package com.yaowk.sfp.slideshow.api;

import com.yaowk.sfp.common.base.PageReq;
import com.yaowk.sfp.common.base.PageResp;
import com.yaowk.sfp.slideshow.api.model.Slideshow;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 小凯
 **/
@FeignClient("slideshow")
@RequestMapping("/slideshow")
public interface SlideshowApi {

    @GetMapping
    PageResp<Slideshow> findAll(Slideshow slideshow, PageReq pageReq);

    @GetMapping("/{id}")
    Slideshow findOne(@PathVariable Long id);

    @PostMapping
    Slideshow save(Slideshow slideshow);

    @DeleteMapping("/{id}")
    void delete(@PathVariable Long id);

}
